package cn.iocoder.yudao.module.trade.api.order;

import cn.iocoder.yudao.module.trade.api.order.dto.TradeOrderUpdateCheckDTO;
import cn.iocoder.yudao.module.trade.service.order.TradeOrderQueryService;
import cn.iocoder.yudao.module.trade.service.order.TradeOrderUpdateService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

/**
 * 订单 API 接口实现类
 *
 * @author HUIHUI
 */
@Service
@Validated
public class TradeOrderApiImpl implements TradeOrderApi {

    @Resource
    private TradeOrderUpdateService tradeOrderUpdateService;
    @Resource
    private TradeOrderQueryService tradeOrderQueryService;


    @Override
    public void adjustPriceByCheck(TradeOrderUpdateCheckDTO updateCheck) {
        tradeOrderUpdateService.updateOrderByCheck(updateCheck);
    }

    @Override
    public void updateOrderByCreatePayCheck(Long id) {
        tradeOrderUpdateService.updateOrderByCreatePayCheck(id);
    }

    @Override
    public void updateOrderByCollectRejected(Long id) {
        tradeOrderUpdateService.updateOrderByCollectRejected(id);
    }
}
